/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * POS_Welcome.java
 *
 * Created on Mar 28, 2011, 11:54:40 AM
 */

package POS_Source;

import POS_Controller.POSController;

/**
 * this class renders welcome view 
 * @author EDAYPE
 * @see POS_Source
 */

public class POS_Welcome extends javax.swing.JPanel {

    private POSController controller;
    /**
     * constructor for this class
     * @param control
     */
    public POS_Welcome(POSController control) {
        initComponents();
        controller = control;
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        BeginButton = new javax.swing.JButton();
        ISLabel = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        ISLabel1 = new javax.swing.JLabel();

        setBackground(new java.awt.Color(255, 255, 255));
        setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        setForeground(new java.awt.Color(255, 255, 255));
        setMaximumSize(new java.awt.Dimension(800, 600));
        setMinimumSize(new java.awt.Dimension(800, 600));

        BeginButton.setBackground(new java.awt.Color(153, 204, 255));
        BeginButton.setFont(new java.awt.Font("Tahoma", 0, 48)); // NOI18N
        BeginButton.setText("Tap Here To Begin");
        BeginButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BeginButtonActionPerformed(evt);
            }
        });

        ISLabel.setFont(new java.awt.Font("Lucida Console", 0, 11)); // NOI18N
        ISLabel.setText("Powered by Interactive Solutions");

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/POS_Source/images/Logo.png"))); // NOI18N

        ISLabel1.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        ISLabel1.setForeground(new java.awt.Color(255, 0, 0));
        ISLabel1.setText(" ");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(788, Short.MAX_VALUE)
                .addComponent(ISLabel)
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addGap(138, 138, 138)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(93, 93, 93)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(BeginButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 570, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addComponent(jLabel1)
                                .addGap(152, 152, 152)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 58, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(ISLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 721, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(163, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(163, 163, 163)
                .addComponent(jLabel1)
                .addGap(62, 62, 62)
                .addComponent(BeginButton, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(95, 95, 95)
                .addComponent(ISLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 186, Short.MAX_VALUE)
                .addComponent(ISLabel)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents
/**
 * this method handles begin button press event 
 * @param evt
 */
    private void BeginButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BeginButtonActionPerformed

        controller.mainFrame();

    }//GEN-LAST:event_BeginButtonActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton BeginButton;
    private javax.swing.JLabel ISLabel;
    private javax.swing.JLabel ISLabel1;
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables

}
